# -*- coding:utf-8 -*- 
from jdly import Jdly
import threading
if __name__ == '__main__':
	jd = Jdly('http://www.jdlingyu.moe/')
	#自动生成分页列表
	# jd.structurePage(174)
	#http://www.jdlingyu.moe/page/7/
	#获取分页信息
	#jd.getIndexPage('http://www.jdlingyu.moe/page/3/')
	#http://www.jdlingyu.moe/17121/
	#获取当天图片列表
	# jd.getImgLinks('http://www.jdlingyu.moe/17090/')
	#下载图片列表
	#http://www.jdlingyu.moe/wp-content/uploads/2016/02/2016-11-18_19-26-49.jpg
	# jd.downImgList()
	# jd.structurePage(174)
	# jd.Jdly_init()\
	th = []
	for i in range(5):
		x = threading.Thread(target=jd.DownImg) 
		th.append(x)

	for i in th:
		i.start()

	# jd.downImgList('1.jpg','http://ww1.sinaimg.cn/large/d030806ajw1f7z82hza54j211z1kw7ar.jpg')
	